package com.bw.z.mvp.contract;

import com.bw.z.mvp.base.model.IModel;
import com.bw.z.mvp.base.view.IView;
import com.bw.z.mvp.model.entity.BaseEntity;

import java.util.Map;

import io.reactivex.Observable;

public interface NewsContract {
    interface NewsModel extends IModel {
        Observable<BaseEntity> requestAll(Map<String, Object>... maps);

        Observable<BaseEntity> requestRefreshLoad(Map<String, Object> map);
    }

    interface NewView extends IView {
        //全部数据请求返回方法
        void refreshAll(BaseEntity baseEntity);

        //下拉刷新数据返回
        void refreshRecyclerView(BaseEntity baseEntity);

        //上拉加载数据返回
        void loadMoreRecyclerView(BaseEntity baseEntity);
    }
}
